<h1 class="page-title"><?php echo $this->translate('login or register') ?></h1>
<div class="account-login">
	<div class="col-1 new-users">
		<div class="content">
			<h2><?php echo $this->translate('new customer') ?></h2>
			<p><?php echo $this->translate('new customer message') ?></p>
		</div>
		<div class="buttons-set">
			<a class="colors-btn" title="<?php echo $this->translate('create account') ?>" href="<?php echo $this->url(array(), 'account_register', true); ?>"><span><span><?php echo $this->translate('create account') ?></span></span></a>
			<div class="clear"></div>
		</div>
	</div>
	<div class="col-2 registered-users">
		<div class="content">
			<h2><?php echo $this->translate('registered customer') ?></h2>
			<p><?php echo $this->translate('registered customer message') ?></p>
			<form id="login" method="post">
            <ul class="form-list">
				<li>
					<label class="required" for="email"><?php echo $this->translate('username') ?><em>*</em></label>
					<div class="input-box">
						<input name="username" type="text" title="<?php echo $this->translate('username') ?>" class="input-text required-entry validate-email" value="" />
					</div>
					<div class="clear"></div>
				</li>
				<li>
					<label class="required" for="pass"><?php echo $this->translate('password') ?><em>*</em></label>
					<div class="input-box">
						<input name="password" type="password" title="<?php echo $this->translate('password') ?>" class="input-text required-entry validate-password" />
					</div>
					<div class="clear"></div>
				</li>
			</ul>
            </form>
            <?php if(isset($this->error) && $this->error == true): ?>
                <span style="color: red; margin-left: 10px; font-style: italic;"><?php echo $this->translate('login error') ?></span>
            <?php endif; ?>
			<p class="required">* <?php echo $this->translate('required') ?></p>
		</div>
		<div class="buttons-set">
			<a class="f-left" href="<?php echo $this->url(array(), 'account_forgotpassword', true); ?>"><?php echo $this->translate('forgot password') ?></a>
			<a class="colors-btn" onclick="return login()" title="<?php echo $this->translate('login') ?>"><span><span><?php echo $this->translate('login') ?></span></span></a>
			<div class="clear"></div>
		</div>
	</div>
	<div class="clear"></div>
</div>
<script>
function login(){
    $("form#login").submit();
    
    return false;
}
</script>